//
//  ImageTool.h
//  Image
//
//  Created by zxs on 2017/6/1.
//  Copyright © 2017年 zxs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface ImageTool : NSObject

// 文字水印
+ (UIImage *)waterWithImage:(UIImage *)image text:(NSString *)text point:(CGPoint)point attributed:(NSDictionary * )attributed;

// 图片水印
+ (UIImage *)waterWithImage:(UIImage *)image mask:(UIImage *)mask rect:(CGRect)rect;

// 圆形裁剪
+ (UIImage *)clipCircleWithImage:(UIImage *)image;

// 带边框的圆形裁剪
+ (UIImage *)clipCircleWithImage:(UIImage *)image borderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor;

// 拉伸图片到指定尺寸：
+ (UIImage *)compressImage:(UIImage *)image toSize:(CGSize)size;

@end
